package com.zjun.core.token;

import com.zjun.Results;
import com.zjun.result.Result;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequiredArgsConstructor
public class IdempotentTokenController {
    private final IdempotentTokenService idempotentTokenService;

    @GetMapping("/token")
    public Result<String> createToken(){return Results.success(idempotentTokenService.createToken());}
}
